<template>
    <div class="header">
        Clicked: <b>{{ $store.state.count }}</b> times, count is <b>{{ $store.getters.evenOrOdd }}</b>.
        <button @click="increment">+</button>
    </div>
</template>

<script>
export default {
  methods: {
    increment() {
        this.$store.dispatch('increment');
    }
  }
}
</script>
